<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改卡单状态配置')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-businessPauseOrderSetting-edit" th:object="${businessPauseOrderSetting}">
            <input id="settingId" name="settingId" th:field="*{settingId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">会员id：</label>
				<div class="col-sm-8">
					<input id="userId" name="userId" th:field="*{userId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">卡单金额：</label>
				<div class="col-sm-8">
					<input id="orderPrice" name="orderPrice" th:field="*{orderPrice}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">卡第几单：</label>
				<div class="col-sm-8">
					<input id="orderNum" name="orderNum" th:field="*{orderNum}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">状态：</label>
				<div class="col-sm-8">
					<div class="input-group" style="width: 100%">
						<select name="payStatus" class="form-control m-b" th:field="*{payStatus}">
							<option value="已完成">已完成</option>
							<option value="未完成">未完成</option>
						</select>
					</div>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">倍数：</label>
				<div class="col-sm-8">
					<input id="orderTimes" name="orderTimes" th:field="*{orderTimes}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "channel/businessPauseOrderSetting";
		$("#form-businessPauseOrderSetting-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-businessPauseOrderSetting-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
